package toolx

import (
	"fmt"
	"math/rand"
	"time"
)

func GetRandInt() int32 {
	r := rand.New(rand.NewSource(time.Now().Unix()))
	return r.Int31n(900000) + 99999
}

func GetRandStr(n int) string {
	rb := make([]byte, n/2)
	rand.Read(rb)
	return fmt.Sprintf("%x", rb)
}
